﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewCapexProcess.aspx.cs"
    Inherits="CapexProcess.NewCapexProcess" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo.ascx" TagName="userinfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments.ascx" TagName="attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory.ascx" TagName="approvalhistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList.ascx" TagName="buttonlist"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="NewCapexProcessHead" runat="server">
    <title>Capital Appropriation Request/固定资产购买申请</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" language="javascript">
        //setInterval("autoJudgeBudget()", 200);  //定时调用判断明细行中是否有为预算外的费用。
        //setInterval("GetDepatApproveJason()", 200);  //自动判断预算内或预算外对应的内部审批逻辑

        $(document).ready(function () {
            //getSumJE();            
            var LoadGuid = ($("#UserInfo1_fld_FORMID").val());
            $("#hfMainGuid").val(LoadGuid);   //获取页面加载时产生的Guid

            //判断是否隐藏要上传的文件描述信息
            var vAtt = $("#lb_AttEngListName").text();
            var count = $("#hfCount").val();
            if (count == "") {
                $("#lb_AttEngListName").hide();   //隐藏要上传的文件描述
                $("#hfCount").val("1");
            }
            else {
                var ddlSelectValue = $("#fld_PROJECTREASON").find("option:selected").text();
                if (ddlSelectValue != "--- 请选择 ---") {
                    GetAttachmentName();
                    $("#lb_AttEngListName").show();   //显示要上传的文件描述
                }
                else {
                    $("#lb_AttEngListName").hide();   //隐藏要上传的文件描述
                }
            }

            //统计项目负责人和公开的预算编号对应的负责人
            AutoTotalOwner();

            //金额百分比计算
            PercentAmount();

            //将表头上的预算编号、余额、公开的预算拥有者信息赋值给明细行中
            var bud = $("#fld_BUDGETNUMBER").val();
            $("[id*=fld_BUDGETNUMBER]").val(bud);  //明细行预算编号
            $("[id*=fld_OWNER]").val($("#var_OWNERACCOUNT").val());  //明细行Owner
            $("[id*=fld_BALANCE]").val($("#fld_CURRBUDBALANCE").val());  //明细行余额
            $("[id *= fld_AMOUNT]").val($("#fld_TOTALAMOUNT").val());  //明细行金额


            $("#fld_TYPEOTHERDESC").css("display", "none");   //页面加载时，隐藏项目类型选项中的其他文本框
            SetReadonly();


            var ProjectNumber = $("#fld_PROJECTNUMBER").val();   //项目编号
            var ProjectLeader = $("#fld_PROJECTLEADERAD").val();   //项目负责人

            var objnumber = $("input[id*=fld_ITEMNUMBER]");             //明细行项目编号
            var objprojectleader = $("select[id*=ddlXMFZR]");          //明细行项目负责人
            if (objnumber != null || objnumber != undefined) {
                for (var i = 0; i < objnumber.length; i++) {
                    var itemval = $("#" + objnumber[i].id + "").val();
                    if (itemval == "") {
                        $("#" + objnumber[i].id + "").val(ProjectNumber);
                    }
                }
            }

            if (objprojectleader != null || objprojectleader != undefined) {
                for (var j = 0; j < objprojectleader.length; j++) {
                    var proval = $("#" + objprojectleader[j].id + "").val();
                    //var proval = $("select#" + objprojectleader[j].id + "").find('option:selected').val();                   
                    if (proval == "") {
                        ;
                        $("#" + objprojectleader[j].id + "").val(ProjectLeader);
                        CheckSelect(objprojectleader[j].id);
                    }
                }
            }


        });

        function CheckSelect(ID) {
            //alert($("#" + ID + "").find("option:selected").text());
            $("#" + ID).parent().parent().find("[id$=fld_PROJECTLEADERNAME]").val($("#" + ID + "").val());
            //当前选中的名字    
            //$("#" + ID).parent().parent().find("[id$=fld_PROJECTLEADERNAME]").val($("#" + ID + "").find("option:selected").text());
        }

        function SetSelectName() {

            var CurrProNa = $("#fld_PROJECTLEADERAD").find("option:selected").text();
            //alert(CurrProNa);
            //当前表头选中的名字    
            $("#fld_PROJECTLEADER").val(CurrProNa);
        }


        //设置为预算内还是预算外
        function SetBudgetType(BudgetValue) {
            //alert($("#" + BudgetValue + "").find("option:selected").text());
            //$("#" + BudgetValue).parent().parent().find("[id$=txtBUDGETTYPE]").val($("#" + BudgetValue + "").find("option:selected").text());
            $("#" + BudgetValue).parent().parent().find("[id$=txtBUDGETTYPE]").val($("#" + BudgetValue + "").val());
        }

        //根据当前原因获取需要上传的附件名
        function GetAttachmentName() {
            var ddlSelectValue = $("#fld_PROJECTREASON").find("option:selected").text();
            var CurrentProcessName = $("#UserInfo1_fld_PROCESSNAME").val();
            GetJason(ddlSelectValue, CurrentProcessName);
        }

        //根据用户选择的项目支出原因，用Jason返回需要用户上传的附件名
        function GetJason(selectValue, CurrentProcessName) {
            var Json = "";
            $.ajaxSetup({ async: false });
            $.get("Dialogs/GetAttachmentName.ashx", { Reason: selectValue, ProcessName: CurrentProcessName }, function (data) {
                var arr = eval(data);
                Json = arr;
            })

            var strAttEngListName = "";
            if (Json != undefined) {         //判断返回值不等于空
                $.each(Json, function (i, item) {
                    strAttEngListName = (i, item.AttEngListName);
                    i++;
                });
            }
            $("#lb_AttEngListName").show();   //显示要上传的文件描述
            $("#lb_AttEngListName").text("Note：Please Upload " + strAttEngListName + " the File");
            //alert(strAttEngListName);
        }

        //总金额大写转换
        function changeRMB() {
            var JE = $("#fld_TOTALAMOUNT").val();
            var STRRMB = ChangeRMB(JE);
            $("#fld_CAPITALAMOUNT").val(STRRMB);
            //autoComputer();
        }

        //判断当前输入的金额是否已超支
        function IsOverspend() {
            var objCurrAmount = $("input[id*=fld_AMOUNT]");            //明细行申请金额
            var objCurrBalance = $("input[id*=fld_BALANCE]");           //明细行余额
            var objSpec = $("input[id*=fld_SPEC]");                   //明细行规格       
            var objCostCa = $("select[id*=COSTCATEGORY]");             //明细行成本类别          
            if (objCurrAmount != null || objCurrAmount != undefined) {
                for (var i = 0; i < objCurrAmount.length; i++) {
                    var Am = parseFloat($("#" + objCurrAmount[i].id + "").val());
                    var Ba = parseFloat($("#" + objCurrBalance[i].id + "").val());
                    if (Am > Ba) {
                        var cou = i + 1;  //当前超支行
                        var LineValue = "The Amount of Your Current Input Has Been Overrun / 您当前输入的金额已超支";
                        $("#txtMessage").text(LineValue);
                        break;  //终止循环
                    }
                    else {
                        $("#txtMessage").text("");
                    }
                }
            }
        }


        //计算总金额
        function getSumJE(ert) {
            var Sum_JE = 0;
            //var TotalBalance;
            $("#tbDetail tr:gt(0)").each(function (i, Etr) {
                var JE = $(Etr).find("td:eq(5)").children().val() - 0;  //当前用户输入的总入账价值 
                if (!isNaN(JE)) {
                    Sum_JE += JE;
                }
                else {
                    $(Etr).find("td:eq(5)").children().val("");
                }
            });
            //$("#fld_TOTALAMOUNT").val(Sum_JE.toFixed(2));     
            $("#fld_TOTALAMOUNT").val(Sum_JE);
            changeRMB();              
        }

        //选择弹出预算页面
        function selectPage1(ert) {
            var CostCenter = $("[id$=fld_COSTCENTER]").text();  //获取当前登录人的成本中心
            var RadioCheck = $("input[name='Type']:checked").val();   //预算类型：预算类和预算外
            //alert(CostCenter);
            if (RadioCheck) {
                rtn = selectPage("SELECT BUDGETCODE,ITEMSDESC,COSTCENTER,COSTCENTERNAME,DEPARTMENT,AMOUNT,CAPEXBALANCE,AMOUNT-CAPEXBALANCE as Balance,OWNERACCOUNT FROM PROC_BUDGETSET where COSTCENTER='" + CostCenter + "' or STATUS=1", "", "BUDGETCODE,ITEMSDESC,DEPARTMENT,AMOUNT,CAPEXBALANCE,Balance", "Budget Number/预算代码,Item Description/项目描述,Department/部门,Budget Amount/金额,Used Capex Amounts/已用Capex金额,Balance/余额", "8,100,30,20,10,10,10", "选择预算信息");
                if (rtn) {
                    //var obj = eval('(' + rtn + ')');              
                    if (obj) {                        
                        //$(ert).parent().parent().find("[id*=fld_OWNER]").val(rtn.OWNERACCOUNT.replace("&nbsp;", "").replace("[USER]", ""));
                        //$(ert).parent().parent().find("[id*=fld_PROJECTNAME]").val(rtn.ITEMSDESC.replace("&nbsp;", ""));
                        //$(ert).parent().parent().find("[id*=fld_BUDGETNUMBER]").val(rtn.BUDGETCODE.replace("&nbsp;", ""));
                        //$(ert).parent().parent().find("[id*=fld_BALANCE]").val(parseFloat(rtn.Balance.replace("&nbsp;", "")));

                        $("#fld_BUDGETNUMBER").val(rtn.BUDGETCODE.replace("&nbsp;", ""));
                        $("#fld_CURRBUDBALANCE").val(rtn.Balance.replace("&nbsp;", ""));
                        $("#fld_BUDGETDESC").text(rtn.ITEMSDESC.replace("&nbsp;", ""));

                        $("[id*=fld_BUDGETNUMBER]").val(rtn.BUDGETCODE.replace("&nbsp;", ""));
                        $("[id*=fld_BALANCE]").val(parseFloat(rtn.Balance.replace("&nbsp;", "")));
                        $("#var_OWNERACCOUNT").val(rtn.OWNERACCOUNT.replace("&nbsp;", "").replace("[USER]", ""));     //公开的预算对应的Owner                     
                    }

                }
            }
            else {
                alert("Please Select a type of budget/请选择预算类型")
            }
            AutoTotalOwner();
            return false;
        }


        function AutoTotalOwner() {
            var returnProNu = "";
            //var strResult = "<+>" + $("#fld_PROJECTLEADERAD").val() + "|USER";
            var ProNu = $("#fld_PROJECTNUMBER").val() + ",";   //表头项目号
            returnProNu = ProNu;
            var Proj = $("#fld_PROJECTLEADERAD").val();
            if (Proj) {
                var strResult = "<+>vast/" + Proj + "|USER";
            }
            else {
                var strResult = "";
            }
            var objOwner = $("input[id*=fld_OWNER]");             //明细行公开的预算对应的AD账号
            var objProLeader = $("input[id*=fld_PROJECTLEADERNAME]");             //明细行项目负责人
            var objProNu = $("input[id*=fld_ITEMNUMBER]");            //明细行项目号
            if (objOwner != null || objOwner != undefined) {
                for (var i = 0; i < objOwner.length; i++) {
                    var itemval = $("#" + objOwner[i].id + "").val();
                    var pro = $("#" + objProLeader[i].id + "").val();
                    //alert(objProLeader[i].id);
                    //alert(itemval);
                    var I = "<+>" + itemval + "|USER";
                    if (itemval) {
                        if (strResult.indexOf(I)) {
                            if (strResult.lastIndexOf(I)) {
                                strResult += I;
                            }
                        }
                    }
                    var P = "<+>vast/" + pro + "|USER"
                    if (pro) {
                        if (strResult.lastIndexOf(P)) {
                            if (strResult.lastIndexOf(P)) {
                                //alert(strResult);
                                strResult += P;
                            }
                        }
                    }
                    //统计当前所有项目号
                    var CurrProNu = $("#" + objProNu[i].id + "").val();
                    returnProNu += CurrProNu + ",";
                }
            }
            //$("#var_OWNERACCOUNT").val(strResult);
            $("#var_CurrProNu").val(returnProNu);          
        }

        //选择项目编号页面
        function selectPage2() {
            rtn = selectPage("select distinct pj_project,pj_desc,CONVERT(varchar(100), pj_beg_dt, 23) as pj_beg_dt,CONVERT(varchar(100), pj_findate, 23) as pj_findate from dbo.SYNC_PROJECTNUMBER where pj_project !='' and pj_active='yes'", "", "pj_project,pj_desc,pj_beg_dt,pj_findate", "Project Number/项目编号,Project Description/项目描述,Start Date/开始时间,End Date/结束时间", "8,60,40,40", "选择项目编号信息");
            if (rtn) {
                if (rtn) {
                    $("#fld_PROJECTNUMBER").val(rtn.pj_project.replace("&nbsp;", ""));
                }
            }
            return false;
        }

        //选择项目编号页面
        function selectPage3(ert) {
            rtn = selectPage("select distinct pj_project,pj_desc,CONVERT(varchar(100), pj_beg_dt, 23) as pj_beg_dt,CONVERT(varchar(100), pj_findate, 23) as pj_findate from dbo.SYNC_PROJECTNUMBER where pj_project !='' and pj_active='yes'", "", "pj_project,pj_desc,pj_beg_dt,pj_findate", "Project Number/项目编号,Project Description/项目描述,Start Date/开始时间,End Date/结束时间", "8,60,40,40", "选择项目编号信息");
            if (rtn != null || rtn != undefined) {
                $("#" + ert.id + "").val(rtn.pj_project.replace("&nbsp;", ""));
                $(ert).parent().parent().find("[id*=fld_PROJECTNAME]").val(rtn.pj_desc.replace("&nbsp;", "")); //项目名称
            }
            return false;
        }

        //禁用明细行数据，设置为不可编辑
        function SetReadonly() {
            //$("[id*=fld_PROJECTNAME]").keydown(function (event) {   //项目主要构件 
            //return false;
            //});
            //预算代码 
            $("[id*=fld_BUDGETNUMBER]").keydown(function (event) {
                return false;
            });
            //余额
            $("[id*=fld_BALANCE]").keydown(function (event) {
                return false;
            });
//            //总金额
//            $("[id*=fld_TOTALAMOUNT]").keydown(function (event) {
//                return false;
//            });
            //大写
            $("[id*=fld_CAPITALAMOUNT]").keydown(function (event) {
                return false;
            });
            //项目编号
            $("#fld_PROJECTNUMBER").keydown(function (event) {
                return false;
            });
            //项目负责人
            $("[id*=fld_ITEMNUMBER]").keydown(function (event) {
                return false;
            });
        }
        
        //预算金额判断，判断明细行中是否有超预算的费用，如果有，返回值为1，并表示为预算外
        function autoJudgeBudget() {
            var Result = "";
            $("#tbDetail tr:gt(0)").each(function (i, tr) {
                var ProjectName = $(tr).find("td:eq(4) :first-child").val();     //项目构件
                var BudgetNumber = $(tr).find("td:eq(3) :first-child").val();    //预算编号
                var Amount = parseFloat($(tr).find("td:eq(5) :first-child").val());   //当前输入的总入账价值
                var BalanceValue = parseFloat($(tr).find("td:eq(6) :first-child").val());   //余额
                var Balance = Math.round(BalanceValue);   //将小数转换为整数
                var NoBudget = "1";  //预算外
                var Budget = "0";    //预算内              
                if (Amount < Balance) {
                    Result = "0";
                    $("#fld_BUDGETED").val(Budget);

                }
                if (Amount > Balance) {
                    $("#fld_BUDGETED").val(Budget);
                    Result = NoBudget;
                    return false;
                }
                //if (ProjectName == "" || BudgetNumber == "" || Balance == "") {     
                if (BudgetNumber == "" || Balance == "") {
                    $("#fld_BUDGETED").val(Budget);
                    Result = NoBudget;
                }
                var BudgetType = $(tr).find("td:eq(1) :first-child").val();     //预算内或者预算外
                if (BudgetType == "1") {
                    $("#fld_BUDGETED").val(Budget);
                    Result = NoBudget;
                }
            });
            //判断是否为预算外
            if (Result == "1") {
                $("#fld_NOBUDGETED").val("1");   //预算外
            }
            else {
                $("#fld_NOBUDGETED").val("0");
            }
            IsOverspend();   //判断当前输入的金额是否已超支
        }

        //验证项目号和项目负责人是否为空
        function Check_ProjectNumber() {
            var Temp = 0;
            var perea = $("input[id*=fld_PERCENTAMOUNT]");             //明细行金额百分比
            if (perea != null || perea != undefined) {
                for (var i = 0; i < perea.length; i++) {
                    var itemval = $("#" + perea[i].id + "").val() - 0;
                    if (itemval != "" && itemval > 0) {
                        if (!isNaN(itemval)) {                           
                            Temp += parseFloat(itemval);                                                                                                           
                        }
                    }
                }
            }

           var TotalPercentage = 100;
           if (Temp != 0) {
               if (Temp == TotalPercentage) {
                    Temp = 0;
                    alert("不能添加操作，百分比值为：100%");
                    return false;
                }
            }
            else {
                return true;
            }
        }


        var Sum_Pre = 0;    //全局变量 
        function PercentAmount() {     
            var objPerAm = $("input[id*=fld_PERCENTAMOUNT]");             //明细行金额百分比
            if (objPerAm != null || objPerAm != undefined) {               
                for (var i = 0; i < objPerAm.length; i++) {
                    var itemval = $("#" + objPerAm[i].id + "").val() - 0;                                        
                    if (itemval != "" && itemval > 0) {
                        if (!isNaN(itemval)) {
                           // Sum_Pre = 0;                          
                            Sum_Pre += parseFloat(itemval);                                                                                                              
                        }
                    }
                }
            }
            validaPreAmount();
        }

        function validaPreAmount() {            
            var PercentageValue = 100 - Sum_Pre;
            var objpa = $("input[id*=fld_PERCENTAMOUNT]");             //明细行金额百分比
            if (objpa != null || objpa != undefined) {
                for (var i = 0; i < objpa.length; i++) {
                    var pval = $("#" + objpa[i].id + "").val();
                    if (pval == "") {
                        $("#" + objpa[i].id + "").val(PercentageValue);
                    }
                }
            }
        }

        function SetTypeValue(et) {
            var radionValue = $("input[type='radio']:checked").val();     
            if (radionValue == "fld_NOBUDGETED") {
                $("#Button2").hide();
                $("#fld_BUDGETNUMBER").val("");           
                $("[id*=txtBUDGETTYPE]").val("1");
            }
            else {
                $("#Button2").attr('disabled', false);
                $("#Button2").show();
                $("[id*=txtBUDGETTYPE]").val("0");
            }
            GetDepatApproveJason(et);
        }

        //根据用户选择的预算类型，返回部门内部人员审批权限信息
        function GetDepatApproveJason() {
             var RadioValue ="";
             var radionValue = $("input[type='radio']:checked").val();
             if (radionValue == "fld_NOBUDGETED") {   //判断预算类型
                 RadioValue = "N";
             }
             else {
                 RadioValue = "B";
             }
            var Json = "";
            var ApplicantAccount = $("#UserInfo1_txtApplicantAccount").val();             
            $.ajaxSetup({ async: false });
            $.get("Dialogs/GetDeptApprovalMatrix.ashx", { BudgetType: RadioValue, ApplicantAccount: ApplicantAccount }, function (data) {
                var arr = eval(data);
                Json = arr;
            })
            var DeptM = "";
            var DeptMA = "";
            var DeptD = "";
            var DeptDA = "";
            var DeptV = "";
            var DeptVA = "";
            var DeptG = "";
            var DeptGA = "";
            if (Json != undefined) {         //判断返回值不等于空
                $.each(Json, function (i, item) {
                    DeptM = (i, item.DeptManager);
                    DeptMA = (i, item.DepatManagerAmount);
                    DeptD = (i, item.DeptDirector);
                    DeptDA = (i, item.DeptDirectorAmount);
                    DeptV = (i, item.DeptVP);
                    DeptVA = (i, item.DeptVPAmount);
                    DeptG = (i, item.DeptGM);
                    DeptGA = (i, item.DeptGMAmount);
                    i++;
                });
            }

            $("#var_DepartmentManager").val(DeptM);
            $("#var_DeptManagerAmout").val(DeptMA);
            $("#var_DepartmentDirector").val(DeptD);
            $("#var_DeptDirectorAmout").val(DeptDA);
            $("#var_DepartmentVP").val(DeptV);
            $("#var_DeptVPAmout").val(DeptVA);
            $("#var_DepartmentGM").val(DeptG);
            $("#var_DeptGMAmout").val(DeptGA);

            var D1 = $("#var_DepartmentManager").val();
            var D2 = $("#var_DepartmentDirector").val();
            var D3 = $("#var_DepartmentVP").val();
            var D4 = $("#var_DepartmentGM").val();

            var A1 = $("#var_DeptManagerAmout").val();
            var A2 = $("#var_DeptDirectorAmout").val();
            var A3 = $("#var_DeptVPAmout").val();
            var A4 = $("#var_DeptGMAmout").val();
            var TotalAmount = $("#fld_TOTALAMOUNT").val();             
            //经理金额判断       
            if (D1) {
                if ($("#var_DeptMA").val()=="") {
                    if (A1 >= TotalAmount) {
                        $("#var_DeptMA").val("1");
                    }
                    else {
                        $("#var_DeptMA").val("0");
                    }
                }
            }
            else {
                $("#var_DeptMA").val("0");
            }

            //总监金额判断
            if (D2) {
                if ($("#var_DeptDA").val() == "") {
                    if (A2 >= TotalAmount) {
                        $("#var_DeptDA").val("1");
                    }
                    else {
                        $("#var_DeptDA").val("0");
                    }
                }
            }
            else {
                $("#var_DeptDA").val("0");
            }

            //副总金额判断
            if (D3) {
                if ($("#var_DeptVA").val() == "") {
                    if (A3 >= TotalAmount) {
                        $("#var_DeptVA").val("1");
                    }
                    else {
                        $("#var_DeptVA").val("0");
                    }
                }
            }
            else {
                $("#var_DeptVA").val("0");
            }

            //GM金额判断
            if (D4) {
                if ($("#var_DeptGA").val() == "") {
                    if (A4 >= TotalAmount) {
                        $("#var_DeptGA").val("1");
                    }
                    else {
                        $("#var_DeptGA").val("0");
                    }
                }
            }
            else {
                $("#var_DeptGA").val("0");
            }


        }
          

    </script>
    <style type="text/css">
        .style1
        {
            height: 52px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row" style="padding-bottom: 5px">
            <ui:userinfo id="UserInfo1" processtitle="CAPITAL APPROPRIATION REQUEST <br />固定资产购买申请"
                processprefix="C" tablename="PROC_CAPEX" tablenamedetail="PROC_CAPEX_DT" runat="server"></ui:userinfo>
        </div>
        <div>
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        Amount Requested / 申请金额
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Budget Type/预算类型
                    </td>
                    <td class="td-content" >
                        <asp:RadioButton ID="fld_BUDGETED" runat="server" GroupName="Type" Text="In Budget/预算内"  OnClick="SetTypeValue('B')" />
                        <asp:RadioButton ID="fld_NOBUDGETED" runat="server" GroupName="Type" Text="Not Budgeted/预算外"  OnClick="SetTypeValue('N')" />
                    </td>
                     <td class="td-label">
                        Capital Expenditure Capitalized/资本化支出
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_TOTALAMOUNT" runat="server" CssClass="validate[required]" money="int"></asp:TextBox>RMB
                    </td>  
                </tr>
               
                <tr>
                     <td class="td-label">
                        Budget Number/预算编号
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_BUDGETNUMBER" runat="server" Width="20%" disInput="true"></asp:TextBox>
                        <asp:Label ID="fld_BUDGETDESC" runat="server"></asp:Label>
                         <asp:Button ID="Button2" runat="server" Text="..." Width="10%" Height="25px" CssClass="btn"
                            OnClientClick="return selectPage1(this);" />
                    </td>
                    <td class="td-label">
                        Current Budget Balance/<br />
                        当前预算余额
                    </td>
                    <td>
                        <asp:TextBox ID="fld_CURRBUDBALANCE" runat="server" disInput="true"></asp:TextBox>RMB
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        The Amount of Disposal/<br />
                        报废金额
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_RETIREMENTAMOUNT" runat="server" money="int"/>RMB
                    </td>
                    <td class="td-label">
                        The Reason Disposal/<br />
                        报废原因
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_SCRAPPEDREASON" runat="server" Width="70%" Height="50px" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        Brief Description OF Project / 简述项目用途
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-label">
                        Project Number/项目编号<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_PROJECTNUMBER" runat="server" Text="9000" onclick="return selectPage2();"
                            ToolTip="单击选择项目编号信息"></asp:TextBox><%-- OnKeyUp="getProjectNumber()" --%>
                        <asp:Button ID="Button1" runat="server" Text="..." Width="10%" Height="25px" CssClass="btn"
                            OnClientClick="return selectPage2();" />
                    </td>
                    <td class="td-label" style=" display:none">
                        Project Leader or Sponsor/<br />
                        项目负责人
                    </td>
                    <td class="td-content" style=" display:none">
                        <asp:DropDownList ID="fld_PROJECTLEADERAD" runat="server" 
                            onchange="SetSelectName();">                           
                        </asp:DropDownList>
                        <asp:TextBox ID="fld_PROJECTLEADER" runat="server" Style="display: none">
                        </asp:TextBox>
                    </td>
                        <td class="td-label">
                        Project Expenditures Reasons/<br />
                        项目支出原因
                    </td>
                    <td class="td-content">
                        <asp:DropDownList ID="fld_PROJECTREASON" runat="server" onchange="GetAttachmentName();" CssClass="validate[required]">
                            <%-- <asp:ListItem>--请选择--</asp:ListItem>
                            <asp:ListItem>Project：New</asp:ListItem>
                            <asp:ListItem>Project：ECN</asp:ListItem>
                            <asp:ListItem>Operation：Capacity</asp:ListItem>
                            <asp:ListItem>Operation：Productivity</asp:ListItem>
                            <asp:ListItem>Operation：Cost Saving</asp:ListItem>
                            <asp:ListItem>Operation：Facility</asp:ListItem>
                            <asp:ListItem>Operation：HSE</asp:ListItem>
                            <asp:ListItem>Others</asp:ListItem>--%>
                        </asp:DropDownList>
                        </td>
                </tr>
                <tr style="display: none">
                    <%--  <td class="td-label">
                        Position/职位
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_POSITION" runat="server"></asp:TextBox>
                    </td>--%>
                    <td>
                        Date of Post-Audit (if required)/<br />
                        事后审计日(如需要)
                    </td>
                    <td class="style1" colspan="3">
                        <asp:TextBox ID="fld_AUDITDATE" runat="server" OnClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                    </td>
                </tr>
                <%--<tr>
                    <td class="td-label">
                        Is Included in the last forecast(Actu/ PC/Budget)/是否计划内
                    </td>
                    <td class="td-content" colspan="4">
                        <div>
                            <asp:CheckBox ID="fld_PLANS" CssClass="common" runat="server" Text="Included in the last forecast(Actu/ PC/Budget)/计划内" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_UNPLANNED" CssClass="common" runat="server" Text="Not Included in the last forecast/计划外" />
                        </div>
                        <div>
                            If yes, for which amount (k€)/计划金额
                            <asp:TextBox ID="fld_PLANAMOUNT" runat="server" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_ITCAPEX" runat="server" Text="Is IT Category/是否为IT类Capex" />
                        </div>
                    </td>
                </tr>--%>
                <tr style="display: none">
                    <td class="td-label">
                        IT-Related/IT相关
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:CheckBox ID="fld_ITCAPEX" runat="server" Text="Is IT Category/是否为IT类Capex" />
                    </td>
                </tr>
                <%-- <tr>
                    <td class="td-label">
                        The Amount of Disposal/<br />
                        报废金额
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_RETIREMENTAMOUNT" runat="server" />
                    </td>
                    <td class="td-label">
                        The Reason Disposal/<br />
                        报废原因
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_SCRAPPEDREASON" runat="server" Width="70%" Height="50px" />
                    </td>
                </tr>--%>
                <tr>
                
                        <%--   <div>
                            <asp:CheckBox ID="fld_NEWPROJECT" runat="server" CssClass="common" Text="Project：New" />
                            <span style="padding-left: 98px"></span>
                            <asp:CheckBox ID="fld_CAPACITYINCREASE" runat="server" CssClass="common" Text="Project：ECN" />
                        </div>
                        <div>
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_PRODUCTIVITY" CssClass="common" Text="Operation：Capacity" runat="server" />
                            <span style="padding-left: 60px"></span>
                            <asp:CheckBox ID="fld_NEWPRODUCTS" runat="server" CssClass="common" Text="Operation：Productivity" />
                        </div>
                        <div>
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_PLANTRELOCATION" runat="server" CssClass="common" Text="Operation：Cost Saving" />
                            <span style="padding-left: 41px"></span>
                            <asp:CheckBox ID="fld_RELOCATIONDOWNSIZE" runat="server" CssClass="common" Text="Operation：Relocation & Downsize" />
                            <span style="padding-left: 41px"></span>
                            <asp:CheckBox ID="fld_HSE" runat="server" CssClass="common" Text="Operation：HSE" />
                        </div>
                        <div>
                        </div>
                        <div>
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_REASONOTHERS" runat="server" CssClass="common" Text=" Others" />                            
                        </div>--%>
                  
                </tr>
                <tr>
                    <td class="td-label">
                        Project Descriptions/<br />
                        项目用途描述
                    </td>
                    <td class="td-content" colspan="6">
                        <asp:TextBox TextMode="MultiLine" ID="fld_ITEMDESC" Width="95%" Height="100px" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <%--<div class="row">
            <table class="table table-condensed table-bordered">
                <tr class="row">
                    <td class="banner" colspan="3">
                        Project Type And Reasons For Expenditure / 项目类型及支出原因
                    </td>
                </tr>
                <tr class="row">
                    <td>
                        <div>
                            <asp:CheckBox ID="fld_CAPITALEXPENDITURE" runat="server" CssClass="common" onclick="ValidateCheckBox(this)"  Text="Capital Expenditure/资本性支出" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_DISPOSALASSETS" runat="server" CssClass="common" onclick="ValidateCheckBox(this)"  Text="Asset disposal/exceptional depreciation(R 64-66) (资产处置/非正常折旧)" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_TYPEOTHER" runat="server" CssClass="common" onclick="ValidateCheckBox(this)"  Text="Other/其他" />
                            <span class="red">*</span><asp:TextBox ID="fld_TYPEOTHERDESC" runat="server"></asp:TextBox>
                        </div>
                    </td>
                    <td>
                        <div>
                            <asp:CheckBox ID="fld_NEWPROJECT" runat="server" CssClass="common" Text="New Implantation/新项目" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_CAPACITYINCREASE" runat="server" CssClass="common" Text="Capacity increase/产能增加" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_PRODUCTIVITY" CssClass="common" Text="Productivity, Cost Improvement/提高效率，降低成本"
                                runat="server" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_NEWPRODUCTS" runat="server" CssClass="common" Text="New Product Line/新产品" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_PLANTRELOCATION" runat="server" CssClass="common" Text="Plant relocation or downsizing/生产转移或减小规模" />
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_REASONOTHERS" runat="server" CssClass="common" Text=" Others (IT, IRP, Quality, etc.)/其他" />
                            <asp:TextBox ID="fld_REASONOTHERSDESC" runat="server"></asp:TextBox>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="td-content" colspan="6">
                        * if project has an impact on R67, a separate DAC should be elaborated HSE/健康/安全/环境<br />
                        * 若项目影响R67，则需单独填写DAC表<br />
                        Other project impact (to be approved separately)/项目其他影响(需单独批准)
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <div>
                            <asp:CheckBox ID="fld_NONOPERATING" CssClass="common" runat="server" Text="Non Operating PL /营业外损益">
                            </asp:CheckBox>
                            <span style="padding-left: 118px">
                                <asp:TextBox ID="fld_NONOPERATINGAMOUNT" runat="server" Width="80px"></asp:TextBox>
                            </span>
                        </div>
                        <div>
                            <asp:CheckBox ID="fld_OTHER" CssClass="common" runat="server" Text="Other/其他"></asp:CheckBox>
                            <span style="padding-left: 225px">
                                <asp:TextBox ID="fld_OTHERAMOUNT" runat="server" Width="80px"></asp:TextBox>
                            </span><span style="padding-left: 30px">
                                <asp:TextBox ID="fld_OTHERDESC" runat="server"></asp:TextBox>
                            </span>
                        </div>
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-content" colspan="3">
                        LC/USD Exchange rate used (Budget rate)/预算汇率 <span style="padding-left: 18px">
                            <asp:TextBox ID="fld_BUDGETRATE" runat="server" Width="80px"></asp:TextBox>
                        </span>
                    </td>
                </tr>
            </table>
        </div>--%>
        <%--  <div class="row" style="font-size: small">
            <table class="table table-condensed table-bordered" style="font-size: small">
                <tr class="row">
                    <td class="banner" colspan="4">
                        AMOUNT REQUESTED / 申请金额
                    </td>
                </tr>
                <tr class="row">
                    <td style="font-size: small;" align="right" class="td-label-long" colspan="2">
                        Local Currency LC/本位币
                        <asp:Label runat="server" ID="Label2">CNY 000</asp:Label>
                        <asp:Label runat="server" ID="Label3">USD 000</asp:Label>
                </tr>
                <tr class="row">
                    <td style="font-size: small;" align="right" class="td-label-long" colspan="2">
                        Capital Expenditure Capitalized/资本化支出
                        <asp:TextBox ID="fld_CAPITALEXPEND" runat="server"></asp:TextBox>
                        <asp:TextBox ID="fld_CAPITALEXPENDD" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td style="font-size: small;" align="right" class="td-label-long" colspan="2">
                        Other expenses related to project/相关费用
                        <asp:TextBox ID="fld_OTHERRELATEEXPEND" runat="server"></asp:TextBox>
                        <asp:TextBox ID="fld_OTHERRELATEEXPENDD" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td style="font-size: small;" align="right" class="td-label-long" colspan="2">
                        Asset disposal/impairment(R64-66)/资产处置费用 **
                        <asp:TextBox ID="fld_ASSETEMPEND" runat="server"></asp:TextBox>
                        <asp:TextBox ID="fld_ASSETEMPENDD" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-label-long" colspan="2">
                        Total Requested/总金额：
                        <asp:Label runat="server" ID="Label1"></asp:Label>
                        <asp:TextBox ID="fld_TOTALEXPEND" runat="server" Style="display: none" CssClass="validate[required,custom[number]]"></asp:TextBox>
                        <asp:TextBox ID="fld_TOTALEXPENDD" runat="server" Style="display: none" CssClass="validate[required,custom[number]]"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-label-long" colspan="2">
                        CNY大写：
                        <asp:Label runat="server" ID="lbTotal"></asp:Label>
                        <asp:TextBox ID="fld_UPPERTOTAL" runat="server" Style="display: none" CssClass="validate[required,custom[number]]"></asp:TextBox>
                        <asp:TextBox ID="fld_UPPERTOTALEXPEND" runat="server" Style="display: none" CssClass="validate[required,custom[number]]"></asp:TextBox>
                        <asp:TextBox ID="fld_UPPERTOTALEXPENDD" runat="server" Style="display: none" CssClass="validate[required,custom[number]]"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td style="font-size: small;" class="td-label-long" colspan="2">
                        ** Indicate Gross Book value of Assets/列明帐面原值
                        <asp:TextBox ID="fld_ASSETVALUE" runat="server"></asp:TextBox>
                        <asp:TextBox ID="fld_ASSETVALUED" runat="server"></asp:TextBox>
                    </td>
                </tr>
               
                <tr class="row">
                    <td class="td-label" align="right">
                        <asp:RadioButtonList ID="fld_ISBUDGET" runat="server" TextAlign="left" Width="100%">
                            <asp:ListItem Value="Yes">Included in the last forecast (Actu/PC/Budget)/计划内</asp:ListItem>
                            <asp:ListItem Value="No">Not Included in the last forecast/计划外</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td class="td-label" align="right">
                        If yes, for which amount (k€)/计划金额
                        <asp:TextBox ID="fld_BUDGETAMOUNT" runat="server"></asp:TextBox>
                    </td>
                </tr>              
            </table>
        </div>--%>
        <%--<div class="row">
            <table class="table table-condensed table-bordered">
                <tr class="row">
                    <td class="banner" colspan="4">
                        PROFITABILITY / 收益性
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-label">
                        Discounted cash flow payback (y)投资回收期(年)
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_PAYBACKPERIOD" runat="server" Width="60%" Style="margin-left: 0px"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        Internal rate of return/内部收益率 (%)
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_INTERNALRATE" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row">
                    <td class="td-label">
                        NPV/净现值 (LC 000)
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_NPV" runat="server" Width="56px"></asp:TextBox>
                        ($ 000)
                        <asp:TextBox ID="fld_NPVUSD" runat="server" Width="35px"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        Discount Rate/贴现率 (%)
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_DISCOUNTRATE" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>--%>
        <div>
            <span style="float: left; color: Red">
                <asp:Label ID="txtMessage" runat="server" />
            </span>
            <tr class="row">
                <td>
                    <table class="table table-condensed table-bordered tablerequired" id="tbDetail">
                        <tr>
                            <th style="width: 10%">
                                No.<br />
                                序号
                            </th>
                            <th style="display: none">
                                Budgeted&No Budgeted /<br />
                                预算内&预算外
                            </th>
                            <th colspan="2">
                                Description /<br />
                                描述
                            </th>
                            <th style="display: none">
                                Budget Number /<br />
                                预算代码
                            </th>
                             <th>
                                Item Number /<br />
                                项目编号
                            </th>
                            <th colspan="2">
                                <%--Split investment in major components/<br />
                                项目主要构件--%>
                                Project Name/<br />
                                项目名称
                            </th>
                            <th style="display: none">
                                Capex Amount/<br />
                                申请金额
                            </th>
                            <th style="display: none">
                                Balance /<br />
                                余额
                            </th>                           
                            <th colspan="2">
                                Project Leader /<br />
                                项目负责人
                            </th>
                            <th>
                                Percentage of Amount/<br />
                                金额百分比
                            </th>
                            <th colspan="6">
                                <asp:Button ID="btnAdd" runat="server" Text="Add/增加" CssClass="btn" CausesValidation="false"
                                    OnClick="btnAdd_Click" OnClientClick="return Check_ProjectNumber();" />
                            </th>
                        </tr>
                        <asp:Repeater ID="fld_detail_PROC_CAPEX_DT" runat="server" OnItemCommand="fld_detail_Capex_DT_ItemCommand"
                            OnPreRender="fld_detail_PROC_CAPEX_DT_PreRender">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="fld_FORMID" Text='<%#Eval("FORMID") %>' runat="server" Style="display: none"></asp:TextBox>
                                        <asp:Label ID="fld_LINENUMBER" Text='<%# Container.ItemIndex+1%>' runat="server"
                                            Width="85%"></asp:Label>
                                        <asp:TextBox ID="fld_OWNER" Text='<%# Eval("OWNER")%>' runat="server" Style="display: none"></asp:TextBox>
                                        <%-- 公开的预算对应的拥有者--%>
                                    </td>
                                    <td style="text-align: center; display: none">
                                        <asp:DropDownList ID="fld_BUDGETTYPE" runat="server" Width="93%" onchange="SetBudgetType(this.id)">
                                            <asp:ListItem Value="0">Budgeted</asp:ListItem>
                                            <asp:ListItem Value="1">No Budgeted</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txtBUDGETTYPE" Text='<%# Eval("BUDGETTYPE") %>' runat="server" Style="display: none"></asp:TextBox>
                                    </td>
                                    <td colspan="2">
                                        <asp:TextBox ID="fld_DESCRIBE" Text='<%#Eval("DESCRIBE") %>' runat="server" Width="88%"  CssClass="validate[required]"></asp:TextBox>
                                    </td>
                                    <td style="display: none">
                                        <asp:TextBox ID="fld_BUDGETNUMBER" Text='<%#Eval("BUDGETNUMBER") %>' runat="server"
                                            Width="88%" Style="cursor: hand;" onclick="return selectPage1(this);" ToolTip="请单击选择预算编号信息"></asp:TextBox>
                                    </td>
                                      <td>
                                        <asp:TextBox ID="fld_ITEMNUMBER" Text='<%#Eval("ITEMNUMBER") %>' runat="server" Width="88%"  CssClass="validate[required]"
                                            onclick="selectPage3(this);"></asp:TextBox>
                                    </td>
                                    <td colspan="2">
                                        <asp:TextBox ID="fld_PROJECTNAME" Text='<%#Eval("PROJECTNAME") %>' runat="server"  CssClass="validate[required]"
                                            Width="88%"></asp:TextBox>
                                    </td>
                                    <td style="display: none">
                                        <asp:TextBox ID="fld_AMOUNT" Text='<%#Eval("AMOUNT") %>' onblur="getSumJE(this)"
                                            onkeyup="getSumJE(this)" runat="server" Width="88%" CssClass="validate[required]"></asp:TextBox>
                                    </td>
                                    <td style="display: none">
                                        <asp:TextBox ID="fld_BALANCE" Text='<%#Eval("BALANCE") %>' runat="server" Width="88%"></asp:TextBox>
                                    </td>                                  
                                    <td colspan="2">
                                        <asp:DropDownList ID="ddlXMFZR" runat="server" Width="93%" onchange="CheckSelect(this.id);"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:TextBox ID="fld_PROJECTLEADERNAME" Text='<%# Eval("PROJECTLEADERNAME") %>' runat="server"
                                            Style="display: none"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_PERCENTAMOUNT" Text='<%# Eval("PERCENTAMOUNT") %>' runat="server" Width="60%"></asp:TextBox>%
                                    </td>
                                    <td colspan="6" style="text-align: center">
                                        <asp:Button ID="btnDelete" runat="server" Text="Delete/删除" CssClass="btn" CommandName="del"
                                            ClientIDMode="Static" OnClientClick="return confirm('Confirm Delete/确认删除？')" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        New
                                        <br />
                                        Project(RMB)
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Total Investment
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_NTOTALINV" Text='<%# Eval("NTOTALINV") %>' runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Local ED&T
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_NLOCALEDT"  Text='<%# Eval("NLOCALEDT") %>' runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Global ED&T
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_NGLOBALEDT"  Text='<%# Eval("NGLOBALEDT") %>'  runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Operation Profit
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_NOPERATIONPROFIT"  Text='<%# Eval("NOPERATIONPROFIT") %>'   runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        ROI
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_NROI"   Text='<%# Eval("NROI") %>'  runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Current
                                        <br />
                                        Project(RMB)
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Total Investment
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_CTOTALINV"  Text='<%# Eval("CTOTALINV") %>'  runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Local ED&T
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_CLOCALEDT" Text='<%# Eval("CLOCALEDT") %>'  runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Global ED&T
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_CGLOBALEDT" Text='<%# Eval("CGLOBALEDT") %>' runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        Operation Profit
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_COPERATIONPROFIT" Text='<%# Eval("COPERATIONPROFIT") %>' runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                    <td style="background-color: #f5f5f5">
                                        ROI
                                    </td>
                                    <td>
                                        <asp:TextBox ID="fld_CROI" Text='<%# Eval("CROI") %>' runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Comment
                                    </td>
                                    <td colspan="15">
                                        <asp:TextBox ID="fld_PROJECTCOMMENT" Text='<%# Eval("PROJECTCOMMENT") %>' runat="server" TextMode="MultiLine" Height="100px"
                                            Width="99%"></asp:TextBox>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
           <%-- <span style="padding-left: 330px">总金额：
                <asp:TextBox ID="fld_TOTALAMOUNT" runat="server" Width="8%" Style="border: 0px; background-color: White;"></asp:TextBox>
            </span><span style="padding-left: 70px">CNY大写：
                <asp:TextBox ID="fld_CAPITALAMOUNT" runat="server" Width="20%" Style="border: 0px;
                    background-color: White;"></asp:TextBox>
            </span>--%>
        </div>
        <%--<div style="display: none">
            <table class="table table-condensed table-bordered tablerequired">
                <tr>
                    <td class="banner" colspan="14">
                        Project Analysis / 项目分析
                    </td>
                </tr>
                <tr>
                    <td>
                        New
                        <br />
                        Project(RMB)
                    </td>
                    <td style="background-color: #f5f5f5">
                        Total Investment
                    </td>
                    <td>
                        <asp:TextBox ID="txt_NTOTALINV" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Local ED&T
                    </td>
                    <td>
                        <asp:TextBox ID="txt_NLOCALEDT" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Global ED&T
                    </td>
                    <td>
                        <asp:TextBox ID="txt_NGLOBALEDT" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Operation Profit
                    </td>
                    <td>
                        <asp:TextBox ID="txt_NOPERATIONPROFIT" runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        ROI
                    </td>
                    <td>
                        <asp:TextBox ID="txt_NROI" runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Current
                        <br />
                        Project(RMB)
                    </td>
                    <td style="background-color: #f5f5f5">
                        Total Investment
                    </td>
                    <td>
                        <asp:TextBox ID="txt_CTOTALINV" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Local ED&T
                    </td>
                    <td>
                        <asp:TextBox ID="txt_CLOCALEDT" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Global ED&T
                    </td>
                    <td>
                        <asp:TextBox ID="txt_CGLOBALEDT" runat="server" Width="86%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        Operation Profit
                    </td>
                    <td>
                        <asp:TextBox ID="txt_COPERATIONPROFIT" runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                    <td style="background-color: #f5f5f5">
                        ROI
                    </td>
                    <td>
                        <asp:TextBox ID="txt_CROT" runat="server" Width="82%" money="int" ToolTip="请输入相关金额信息/Please Enter the Amount of Information"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Comment
                    </td>
                    <td colspan="15">
                        <asp:TextBox ID="txt_PROJECTCOMMENT" runat="server" TextMode="MultiLine" Height="100px"
                            Width="99%"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>--%>
        <div>
            <span class="left"><font color="red">
                <asp:Label ID="lb_AttEngListName" runat="server" Text=""></asp:Label></font></span>
        </div>
        <div align="center" style="text-align: left">
            <attach:attachments id="Attachments1" runat="server"></attach:attachments>
        </div>
        <div align="center" style="text-align: left">
            <ah:approvalhistory id="ApprovalHistory1" showaction="false" runat="server"></ah:approvalhistory>
        </div>
        <div align="center" style="text-align: left">
            <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
        </div>
    </div>
    <div style="display: none">
        <asp:TextBox ID="fld_OPERATION" runat="server"></asp:TextBox>
        <%--是否为运营部门，1代表是，0代表否--%>
        <asp:HiddenField ID="hfMainGuid" runat="server" />
        <asp:HiddenField ID="hfCount" runat="server" />
        <%--<asp:TextBox ID="fld_BUDGETED" runat="server"></asp:TextBox>--%>   <%--预算内--%>        
        <%--<asp:TextBox ID="fld_NOBUDGETED" runat="server"></asp:TextBox>--%>   <%--预算外--%>       
        <asp:TextBox ID="var_OWNERACCOUNT" runat="server"></asp:TextBox> <%--公开的预算对应的预算拥有者--%>        
        <asp:TextBox ID="var_CurrProNu" runat="server"></asp:TextBox> <%--项目号--%>        
    </div>
  
    <asp:TextBox ID="var_DepartmentManager" runat="server" Text=""></asp:TextBox><%-- 经理审批 --%>
    <asp:TextBox ID="var_DepartmentDirector" runat="server" Text=""></asp:TextBox><%-- 总监审批 --%>
    <asp:TextBox ID="var_DepartmentVP" runat="server" Text=""></asp:TextBox><%--  副总审批 --%>
    <asp:TextBox ID="var_DepartmentGM" runat="server" Text=""></asp:TextBox><%--  总经理审批 --%>
    <asp:TextBox ID="var_DeptManagerAmout" runat="server" Text=""></asp:TextBox><%-- 经理审批金额额度 --%>
    <asp:TextBox ID="var_DeptDirectorAmout" runat="server" Text=""></asp:TextBox><%-- 总监审批金额额度 --%>
    <asp:TextBox ID="var_DeptVPAmout" runat="server" Text=""></asp:TextBox><%--  副总审批金额额度 --%>
    <asp:TextBox ID="var_DeptGMAmout" runat="server" Text=""></asp:TextBox><%--  总经理审批金额额度 --%>

    <asp:TextBox ID="var_DeptMA" runat="server" Text=""></asp:TextBox>
    <asp:TextBox ID="var_DeptDA" runat="server" Text=""></asp:TextBox>
    <asp:TextBox ID="var_DeptVA" runat="server" Text=""></asp:TextBox>
    <asp:TextBox ID="var_DeptGA" runat="server" Text=""></asp:TextBox>

    </form>
</body>
</html>
